package com.yequan.compare;

import java.util.Comparator;

/**
 * @author yq
 * @date 2020/08/25
 */
public class DescIdComparator implements Comparator<Person> {
    @Override
    public int compare(Person o1, Person o2) {
        return o2.getId() - o1.getId();
    }
}
